<template>
  <div id="app">
    <minder></minder>
  </div>
</template>

<script>
import minder from '@/components/minder'
import {state} from "./store/minder/state";

export default {
  name: 'app',
  components: {
    minder
  },
  watch: {

  },
  created() {
    this.setData('inti')
  },
  methods: {
    getData(){
      console.log(window.localStorage.mindText);
    },
    setData(t){
      window.localStorage.mindText = '{"root":{"data":{"id":"cbvhcat70i80","created":1622875470376,"text":"'+t+'","expandState":"expand","font-family":"微软雅黑,Microsoft YaHei"},"children":[{"data":{"id":"cbvhcixamag0","created":1622875488038,"text":"分支主题","expandState":"expand","layout":null},"children":[{"data":{"id":"cbvi2p3rkhc0","created":1622877538958,"text":"分支主题","expandState":"expand","layout":null},"children":[]},{"data":{"id":"cbvi98q32a00","created":1622878051851,"text":"分支主题"},"children":[]}]},{"data":{"id":"cbvi9aq1wg80","created":1622878056203,"text":"分支主题"},"children":[]},{"data":{"id":"cbvhg5f4xgg0","created":1622875772098,"text":"分支主题2","expandState":"expand","layout":null},"children":[]},{"data":{"id":"cbvhwjx5g800","created":1622877057489,"text":"分支主题","expandState":"expand","layout":null},"children":[]}]},"template":"fish-bone","theme":"fresh-blue","version":"1.4.43"}';
    }
  }
}
</script>

<style>
  @import "./components/minder/style/normalize.css";
  .mind-editor {
    top: 151px;
  }
</style>
